package com.heima.model.article.dtos;

import lombok.Data;

import java.util.Date;

@Data
public class CollectionBehaviorDto {
    /**
     *文章id
     */
    private Long entryId;
    /**
     * 0：收藏 1：取消收藏
     */
    private short operation;
    /**
     * 发布时间
     */
    private Date publishedTime;
    /**
     * 0 文章 1 动态
     */
    private short type;

    public boolean checkParam(){
        if(entryId==null || operation<0 || operation>1 || type<0 ||type>1){
            return true;
        }else {
            return false;
        }
    }

}
